// types/index.ts
export interface Page {
  page_id: string | number
  title: string
  create_time: string
  update_time: string
  content: Array<any>
}

export interface Pagination {
  total: number
  currentPage: number
  perPage: number
  lastCursor: string | number | null
}

export interface PageListResponse {
  data: Page[]
  pagination: Pagination
}

export interface CreateResponse {
  id: number
}

export interface UpdateDeleteResponse {
  affectedRows: number
}